/*
 * @Descripttion: tab操作
 * @version: 1.0
 * @Author: hzj-1510017964@qq.com
 * @Date: 2020-04-21 15:22:13
 * @LastEditors: hzj-1510017964@qq.com
 * @LastEditTime: 2020-05-07 10:51:20
 */

const router = require('koa-router')()
const user = require('../service/user')
const tab = require('../service/tabService')
const app = require('../config/appConfig')


router.prefix(app.API.APP_REQUEST_URL)   //app 路径

/**
 * @Author: hzj-1510017964@qq.com
 * @route:  GET /getTab
 * @desc: 获取tab数据
 * @info:  noneVerify
 */
router
     .post('/login',user.UserLogin)
     .get('/getOutAndInType/:type',user.GetOutAndInType)
     .post('/addUserRecord',user.AddUserRecord)
     .post('/getUserRecordDao',user.getUserRecordDao)
     .post('/total',user.total)
     .post('/setQuota',user.setQuota)
     .post('/getUserInfo',user.getUserInfo)
     .post('/uploadFile',tab.uploadFile)



module.exports = router
